#ifndef __TASK_H
#define __TASK_H

#include <kernel.h>

typedef struct task
{
	vc_t *vc;
	jmp_buf state;
	enum
	{
		TS_RUNNABLE = 1, TS_BLOCKED = 2, TS_ZOMBIE = 3
	} status;
} task_t;

typedef struct wait_queue
{
	unsigned int flags;
	task_t *task;
	struct wait_queue *next;
} wait_queue_t;

#endif
